package com.jiuwan.gamepass.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuwan.gamepass.pojo.App;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppDao extends BaseMapper<App> {
    int deleteByPrimaryKey(String id);

    int insert(App record);

    int insertSelective(App record);

    App selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(App record);

    int updateByPrimaryKey(App record);


    //增加用户
    int addApp (App app);

    //查找用户
    List<App> selectAllByAppName(String appName);

    //deleteByAppName 删除
    int deleteByAppName(String appName);

    //根据appName与version查询
    App selectByAppNameAndVersion(String appName,String version);

    //查找所有app内容
    List<App> selectAll ();

    //动态查找
    List<App> selectPlus(String appName);
}